<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增智能网格省区配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sq-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">省区名称：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">省区编码：</label>
                <div class="col-sm-8">
                    <input name="bm" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">上传时间(每天时间0-24)：</label>
                <div class="col-sm-8">
                    <input name="uptime" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">缓冲时间（分钟）：</label>
                <div class="col-sm-8">
                    <input name="hctime" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">级别：</label>
                <div class="col-sm-8">
                <!--    <input name="jb" class="form-control" type="text">-->
                    <select class="form-control" name="jb" required>
                        <option value="L0">L0</option>
                        <option value="L1">L1</option>
                        <option value="L2">L2</option>
                        <option value="L3">L3</option>
                        <option value="L4">L4</option>
                        <option value="L5">L5</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">时间间隔（小时）：</label>
                <div class="col-sm-8">
                    <input name="sjjg" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">去除数值 （如果=no 就默认值-9999）：</label>
                <div class="col-sm-8">
                    <input name="isjc" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">时区：</label>
                <div class="col-sm-8">
                   <!-- <input name="cpsjlx" class="form-control" type="text">-->
                    <select class="form-control" name="cpsjlx" required>
                        <option value="0">世界时</option>
                        <option value="1">北京时</option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/sq"
        $("#form-sq-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-sq-add').serialize());
            }
        }
    </script>
</body>
</html>